package com.api.projects.service;

import com.api.apicommon.model.entity.UserInterfaceInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 用户调用接口信息
 */
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo>{
    /**
     * 判断是否有效
     * @param userInterfaceInfo
     * @param add
     */
    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo,boolean add);

    /**
     * 调用接口的话接口次数  +1
     * @param interfaceInfoId   接口Id
     * @param userId 用户Id
     * @return
     */
    boolean invokeCount(long interfaceInfoId,long userId);
}
